diff --git a/core/lib/Drupal/Core/Validation/ConstraintManager.php b/core/lib/Drupal/Core/Validation/ConstraintManager.php index 12bbf11..d2e84c7 100644 --- a/core/lib/Drupal/Core/Validation/ConstraintManager.php +++ b/core/lib/Drupal/Core/Validation/ConstraintManager.php @@ -66,10 +66,7 @@ public function __construct(\Traversable $namespaces, CacheBackendInterface $cac * A validation constraint plugin. */ public function create($name, $options) { - if (!isset($options)) { - $options = array(); - } - elseif (!is_array($options)) { + if (!is_array($options)) { // Plugins need an array as configuration, so make sure we have one. // The constraint classes support passing the options as part of the // 'value' key also. diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Entity/Item.php b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Item.php index 3bb64a9..a09ba6f 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Entity/Item.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Item.php @@ -49,17 +49,6 @@ public function label() { /** * {@inheritdoc} */ - public function postCreate(EntityStorageControllerInterface $storage_controller) { - parent::postCreate($storage_controller); - - if ($this->getPostedTime() === NULL) { - $this->setPostedTime(REQUEST_TIME); - } - } - - /** - * {@inheritdoc} - */ public static function baseFieldDefinitions($entity_type) { $fields['iid'] = FieldDefinition::create('integer') ->setLabel(t('Aggregator item ID'))