You are here

EntityLocalTaskProviderInterface.php in Entity API 8

Namespace

Drupal\entity\Menu

File

src/Menu/EntityLocalTaskProviderInterface.php
View source
<?php

namespace Drupal\entity\Menu;

use Drupal\Core\Entity\EntityTypeInterface;

/**
 * Provides an interface for entity local task providers.
 */
interface EntityLocalTaskProviderInterface {

  /**
   * Builds local tasks for the given entity type.
   *
   * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
   *   The entity type.
   *
   * @return array[]
   *   An array of local task definitions.
   */
  public function buildLocalTasks(EntityTypeInterface $entity_type);

}

Interfaces

Namesort descending Description
EntityLocalTaskProviderInterface Provides an interface for entity local task providers.