protected function RESTTestBase::isConfigEntity in Drupal 8
Checks if an entity type id is for a Config Entity.
Parameters
string $entity_type_id: The entity type ID to check.
Return value
bool TRUE if the entity is a Config Entity, FALSE otherwise.
2 calls to RESTTestBase::isConfigEntity()
- RESTTestBase::entityPermissions in core/
modules/ rest/ src/ Tests/ RESTTestBase.php - Provides the necessary user permissions for entity operations.
- RESTTestBase::entityValues in core/
modules/ rest/ src/ Tests/ RESTTestBase.php - Provides an array of suitable property values for an entity type.
File
- core/
modules/ rest/ src/ Tests/ RESTTestBase.php, line 596
Class
- RESTTestBase
- Test helper class that provides a REST client method to send HTTP requests.
Namespace
Drupal\rest\TestsCode
protected function isConfigEntity($entity_type_id) {
return \Drupal::entityTypeManager()
->getDefinition($entity_type_id) instanceof ConfigEntityType;
}