You are here

abstract protected function EntityReferenceFacetFormatterBase::buildElement in Entity Reference Facet Link 8

Builds a single element's render array.

Parameters

\Drupal\Core\Url $url: The processed facet URL.

\Drupal\Core\Entity\EntityInterface $entity: The entity being displayed.

Return value

array A render array.

1 call to EntityReferenceFacetFormatterBase::buildElement()
EntityReferenceFacetFormatterBase::viewElements in src/Plugin/Field/FieldFormatter/EntityReferenceFacetFormatterBase.php
Builds a renderable array for a field value.
2 methods override EntityReferenceFacetFormatterBase::buildElement()
EntityReferenceFacetLink::buildElement in src/Plugin/Field/FieldFormatter/EntityReferenceFacetLink.php
Builds a single element's render array.
EntityReferenceFacetUrl::buildElement in src/Plugin/Field/FieldFormatter/EntityReferenceFacetUrl.php
Builds a single element's render array.

File

src/Plugin/Field/FieldFormatter/EntityReferenceFacetFormatterBase.php, line 194

Class

EntityReferenceFacetFormatterBase

Namespace

Drupal\entity_reference_facet_link\Plugin\Field\FieldFormatter

Code

protected abstract function buildElement(Url $url, EntityInterface $entity);