comparison core/lib/Drupal/Core/Field/BaseFieldDefinition.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
732 /** 732 /**
733 * {@inheritdoc} 733 * {@inheritdoc}
734 */ 734 */
735 public function getColumns() { 735 public function getColumns() {
736 $schema = $this->getSchema(); 736 $schema = $this->getSchema();
737 // A typical use case for the method is to iterate on the columns, while
738 // some other use cases rely on identifying the first column with the key()
739 // function. Since the schema is persisted in the Field object, we take care
740 // of resetting the array pointer so that the former does not interfere with
741 // the latter.
742 reset($schema['columns']);
743 return $schema['columns']; 737 return $schema['columns'];
744 } 738 }
745 739
746 /** 740 /**
747 * {@inheritdoc} 741 * {@inheritdoc}