You are here

public function EntityLocalTaskProviderInterface::buildLocalTasks in Entity API 8

Builds local tasks for the given entity type.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

Return value

array[] An array of local task definitions.

1 method overrides EntityLocalTaskProviderInterface::buildLocalTasks()
DefaultEntityLocalTaskProvider::buildLocalTasks in src/Menu/DefaultEntityLocalTaskProvider.php
Builds local tasks for the given entity type.

File

src/Menu/EntityLocalTaskProviderInterface.php, line 21

Class

EntityLocalTaskProviderInterface
Provides an interface for entity local task providers.

Namespace

Drupal\entity\Menu

Code

public function buildLocalTasks(EntityTypeInterface $entity_type);