class EntityRelationshipsExtension extends Twig_Extension

Class EntityRelationshipsExtension is injected as empire_entity_relationship_plugin.extension service. EntityRelationshipsExtension handles the logic and provides necessary data for managed entity in twig.

Properties

protected EntityRelationshipManager $manager

Methods

__construct(EntityRelationshipManager $manager)

No description

getFunctions()

{@inheritdoc}

array
getRelationshipData(string $title, array $ids = [])

Get relationship data from database

string
getName()

No description

Details

at line 29
__construct(EntityRelationshipManager $manager)

Parameters

EntityRelationshipManager $manager

at line 37
getFunctions()

{@inheritdoc}

at line 53
array getRelationshipData(string $title, array $ids = [])

Get relationship data from database

Parameters

string $title
  • Select relationships with this title
array $ids
  • If param is set limit relationship to these ids

Return Value

array

Exceptions

DBALException

at line 61
string getName()

Return Value

string The extension name