public static function TypeSettingsStorage::loadAsArray in Node Accessibility 8
Convenience function to return settings as an array.
If nodeType does not exist or there is an error, then node_type array key will be set to NULL.
@see: self::load()
Parameters
string $nodeType: The node type machine name.
Return value
array() An array of settings is always returned.
5 calls to TypeSettingsStorage::loadAsArray()
- node_accessibility_node_insert in ./
node_accessibility.module - Implements hook_ENTITY_TYPE_insert().
- node_accessibility_node_update in ./
node_accessibility.module - Implements hook_ENTITY_TYPE_update().
- PerformValidation::nodes in src/
PerformValidation.php - Performs validation on the given nodes and stores the results.
- PerformValidation::node_revisions in src/
PerformValidation.php - Performs validation on the given nodes and stores the results.
- TypeSettingsStorage::loadByNodeAsArray in src/
TypeSettingsStorage.php - Convenience function to load settings by node as an array.
File
- src/
TypeSettingsStorage.php, line 189
Class
- TypeSettingsStorage
- Class TypeSettingsStorage.
Namespace
Drupal\node_accessibilityCode
public static function loadAsArray($nodeType) {
$result = static::load($nodeType);
return $result
->toArray();
}