public function PluralTranslation::get

public PluralTranslation::get()

Gets the value of an annotation.

Overrides AnnotationInterface::get

File

core/lib/Drupal/Core/Annotation/PluralTranslation.php, line 97

Class

PluralTranslation
Defines an annotation object for strings that require plural forms.

Namespace

Drupal\Core\Annotation

Code

public function get() {
  return [
    'singular' => $this->singular,
    'plural' => $this->plural,
    'context' => $this->context,
  ];
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Annotation!PluralTranslation.php/function/PluralTranslation::get/8.1.x