Created
October 13, 2014 09:26
-
-
Save vijaycs85/88395eb337c7ab6d58f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hook_field_info() Replaced by annotation-based plugin discovery, using the \Drupal\Core\Field\Annotation\FieldType annotation class | |
+ FieldItemInterface::defaultSettings() / FieldItemInterface::defaultInstanceSettings() (static methods) | |
hook_field_schema() FieldItemInterface::schema() (static method) | |
hook_field_settings_form() FieldItemInterface::settingsForm() | |
hook_field_instance_settings_form() FieldItemInterface::instanceSettingsForm() | |
hook_field_is_empty() ComplexDataInterface::isEmpty() | |
hook_field_presave() FieldItemInterface::preSave() | |
hook_field_insert() FieldItemInterface::insert() | |
hook_field_update() FieldItemInterface::update() | |
hook_field_delete() FieldItemInterface::delete() | |
hook_field_delete_revision() FieldItemInterface::deleteRevision() | |
hook_field_validate() TypedDataInterface::getConstraints() (field validation moves on top of the existing Entity validation with Symfony constraints) | |
hook_field_load() Removed. Field types can add computed properties or methods to their field item classes instead. See https://drupal.org/node/2112677. | |
hook_field_prepare_view() Removed, in favour of prepareView() on Formatters. Field types that implemented specific prepare_view steps with this hook should consider providing a base prepareView() implementation in an abstract base formatter class instead. | |
hook_field_prepare_translation() Dropped - was only related to the old (node-only) translation model. | |
hook_field_prepare_translation_alter() Dropped - was only related to the old (node-only) translation model. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment