You are here

public function LocalActionLinkBinding::build in Drupal 7 to 8/9 Module Upgrader 8

Builds the link definition.

Return value

array

Overrides LinkBinding::build

File

src/Routing/LinkBinding/LocalActionLinkBinding.php, line 13

Class

LocalActionLinkBinding
Represents a local action.

Namespace

Drupal\drupalmoduleupgrader\Routing\LinkBinding

Code

public function build() {
  $link = parent::build();
  $link['appears_on'][] = $this
    ->getDestination()
    ->getIdentifier();
  return $link;
}