Commit 243f1668 authored by webchick's avatar webchick

Issue #2149841 by drastik, xjm, amateescu: The 'aggregator_feed' entity type...

Issue #2149841 by drastik, xjm, amateescu: The 'aggregator_feed' entity type doesn't have a UUID field.
parent b520d1de
......@@ -35,6 +35,12 @@ function aggregator_schema() {
'not null' => TRUE,
'description' => 'Primary Key: Unique feed ID.',
),
'uuid' => array(
'description' => 'Unique Key: Universally unique identifier for this entity.',
'type' => 'varchar',
'length' => 128,
'not null' => FALSE,
),
'title' => array(
'type' => 'varchar',
'length' => 255,
......
......@@ -25,7 +25,7 @@
* "form" = {
* "default" = "Drupal\aggregator\FeedFormController",
* "delete" = "Drupal\aggregator\Form\FeedDeleteForm",
* "remove_items" = "Drupal\aggregator\Form\FeedItemsRemoveForm"
* "remove_items" = "Drupal\aggregator\Form\FeedItemsRemoveForm",
* }
* },
* base_table = "aggregator_feed",
......@@ -33,6 +33,7 @@
* entity_keys = {
* "id" = "fid",
* "label" = "title",
* "uuid" = "uuid",
* }
* )
*/
......@@ -233,8 +234,10 @@ public static function baseFieldDefinitions($entity_type) {
->setDescription(t('The ID of the aggregator feed.'))
->setReadOnly(TRUE);
// @todo Add a UUID field for this entity type in
// https://drupal.org/node/2149841.
$fields['uuid'] = FieldDefinition::create('uuid')
->setLabel(t('UUID'))
->setDescription(t('The aggregator feed UUID.'))
->setReadOnly(TRUE);
$fields['title'] = FieldDefinition::create('string')
->setLabel(t('Title'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment