You are here

public function ThemeKeyRuleListBuilder::buildRow in ThemeKey 8

Builds a row for an entity in the entity listing.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list.

Return value

array A render array structure of fields for this entity.

Overrides EntityListBuilder::buildRow

See also

\Drupal\Core\Entity\EntityListBuilder::render()

File

src/Controller/ThemeKeyRuleListBuilder.php, line 35
Contains Drupal\themekey\Controller\ThemeKeyRuleListBuilder.

Class

ThemeKeyRuleListBuilder
Provides a listing of ThemeKeyRule.

Namespace

Drupal\themekey\Controller

Code

public function buildRow(EntityInterface $entity) {
  $row['label'] = $this
    ->getLabel($entity);
  $row['property'] = $entity
    ->property();
  $row['key'] = $entity
    ->key();
  $row['operator'] = $entity
    ->operator();
  $row['value'] = $entity
    ->value();
  $row['theme'] = $entity
    ->theme();
  return $row + parent::buildRow($entity);
}