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