You are here

public static function EntityHelper::entityTypeHasProperty in Helper 7

1 call to EntityHelper::entityTypeHasProperty()
EntityHelper::loadRevision in lib/EntityHelper.php
Load a single entity revision.

File

lib/EntityHelper.php, line 117

Class

EntityHelper

Code

public static function entityTypeHasProperty($entity_type, array $parents) {
  if ($info = entity_get_info($entity_type)) {
    return drupal_array_get_nested_value($info, $parents);
  }
}