You are here

public function LocalTaskInterface::getActive in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/LocalTaskInterface.php \Drupal\Core\Menu\LocalTaskInterface::getActive()
  2. 9 core/lib/Drupal/Core/Menu/LocalTaskInterface.php \Drupal\Core\Menu\LocalTaskInterface::getActive()

Gets the active status.

Return value

bool TRUE if the local task is active, FALSE otherwise.

See also

\Drupal\system\Plugin\MenuLocalTaskInterface::setActive()

File

core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 86

Class

LocalTaskInterface
Defines an interface for menu local tasks.

Namespace

Drupal\Core\Menu

Code

public function getActive();