You are here

public function QuickNodeCloneNodeFinder::getLinksByType in Quick Node Clone 8

Get entity links, given an entity type.

Parameters

string $type: The entity type.

Return value

array|null An array of link templates, or null.

File

src/QuickNodeCloneNodeFinder.php, line 131

Class

QuickNodeCloneNodeFinder
Helper class.

Namespace

Drupal\quick_node_clone

Code

public function getLinksByType($type) {
  $entity_type = $this->entityTypeManager
    ->getDefinition($type);
  return $entity_type
    ->getLinkTemplates();
}