public static function ConfigPages::create in Config Pages 8.2
Same name and namespace in other branches
- 8.3 src/Entity/ConfigPages.php \Drupal\config_pages\Entity\ConfigPages::create()
- 8 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
2 calls to ConfigPages::create()
- ConfigPagesCommands::pagesSetFieldValue in src/
Commands/ ConfigPagesCommands.php - Set a value for the field of Config Pages.
- SetValueCommand::execute in src/
Command/ SetValueCommand.php
File
- src/
Entity/ ConfigPages.php, line 162
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);
}