You are here

EntityProviderBase.php in Crop API 8.2

Same filename and directory in other branches
  1. 8 src/EntityProviderBase.php

Namespace

Drupal\crop

File

src/EntityProviderBase.php
View source
<?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() {
    $this->pluginDefinition['label'];
  }

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

}

Classes

Namesort descending Description
EntityProviderBase Base implementation for entity provider plugins.