You are here

public function LingotekConfigChunk::__get in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.4 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::__get()
  2. 7.5 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::__get()

Magic get for access to chunk and chunk properties.

File

lib/Drupal/lingotek/LingotekConfigChunk.php, line 832
Defines LingotekConfigChunk.

Class

LingotekConfigChunk
A class wrapper for Lingotek-specific behavior on ConfigChunks.

Code

public function __get($property_name) {
  $property = NULL;
  if ($property === self::DRUPAL_ENTITY_TYPE) {
    $property = $this;
  }
  elseif (isset($this->{$property_name})) {
    $property = $this->{$property_name};
  }
  return $property;
}