public static function ConfigPages::create in Config Pages 8
Same name and namespace in other branches
- 8.3 src/Entity/ConfigPages.php \Drupal\config_pages\Entity\ConfigPages::create()
- 8.2 src/Entity/ConfigPages.php \Drupal\config_pages\Entity\ConfigPages::create()
Constructs a new entity object, without permanently saving it.
Parameters
array $values: (optional) An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified.
Return value
static The entity object.
Overrides EntityBase::create
File
- src/
Entity/ ConfigPages.php, line 163
Class
- ConfigPages
- Defines the config page entity class.
Namespace
Drupal\config_pages\EntityCode
public static function create(array $values = []) {
return \Drupal::entityTypeManager()
->getStorage('config_pages')
->create($values);
}