crop-8.x-2.x-dev/src/EntityProviderBase.php

src/EntityProviderBase.php
<?php

namespace Drupal\crop;

use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Plugin\PluginBase;

/**
 * Base implementation for entity provider plugins.
 */
abstract class EntityProviderBase extends PluginBase implements EntityProviderInterface {

  /**
   * {@inheritdoc}
   */
  public function label() {
    return $this->pluginDefinition['label'];
  }

  /**
   * {@inheritdoc}
   */
  abstract public function uri(EntityInterface $entity);

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc