You are here

public function SubFormState::get in Authorization 8

Gets any arbitrary property.

Parameters

string|array $property: Properties are often stored as multi-dimensional associative arrays. If $property is a string, it will return $storage[$property]. If $property is an array, each element of the array will be used as a nested key. If $property = ['foo', 'bar'] it will return $storage['foo']['bar'].

Return value

mixed A reference to the value for that property, or NULL if the property does not exist.

Overrides FormStateInterface::get

File

src/Form/SubFormState.php, line 211

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

public function &get($property) {
  if (isset(self::$inheritedKeys[$property])) {
    return $this->mainFormState
      ->get($property);
  }
  $value =& NestedArray::getValue($this->internalStorage, (array) $property);
  return $value;
}