You are here

public function EntityFlagType::showInLinks in Flag 8.4

Return the show in links setting given a view mode.

Parameters

string $name: The name of the view mode.

Return value

bool TRUE if the flag should appear in the entity links for the view mode.

1 call to EntityFlagType::showInLinks()
EntityFlagType::buildConfigurationForm in src/Plugin/Flag/EntityFlagType.php
Provides a form for this action link plugin settings.

File

src/Plugin/Flag/EntityFlagType.php, line 198

Class

EntityFlagType
Provides a flag type for all entity types.

Namespace

Drupal\flag\Plugin\Flag

Code

public function showInLinks($name) {
  if (!empty($this->configuration['show_in_links'][$name])) {
    return TRUE;
  }
  return FALSE;
}