You are here

protected function Label::getMark in Profile 2 8

Helper function to get the renderable array of the entity's mark.

Parameters

$entity: The profile entity this field belongs to.

Return value

array Renderable array of the entity mark.

1 call to Label::getMark()
Label::render in src/Plugin/views/field/Label.php
Renders the field.

File

src/Plugin/views/field/Label.php, line 73
Definition of Drupal\profile\Plugin\views\field\Label.

Class

Label
Field handler to show the generated label of a profile.

Namespace

Drupal\profile\Plugin\views\field

Code

protected function getMark($entity) {
  return array(
    '#theme' => 'mark',
    '#mark_type' => node_mark($entity
      ->id(), $entity
      ->getChangedTime()),
  );
}