hook_entity_info()
has been removed.hook_menu()
has been removed from Drupal 8.hook_menu()
replacedMODULE.routing.yml
MODULE.links.contextual.yml
MODULE.links.action.yml
MODULE.links.task.yml
MODULE.links.menu.yml
drupal_add_js()
has been removed.drupal_add_css()
, drupal_add_js()
and drupal_add_library()
removed in favor of #attached
AssetResolverInterface
and AttachedAssetsInterface
replace internal Asset API functionsconfirm_form()
is now \Drupal\Core\Form\ConfirmFormBase
drupal_goto()
has been removed.drupal_render()
has been removed.element_children()
is now a method of the Element
class.entity_create()
is now a method of EntityInterface
.entity_load()
has been removed.entity_save()
has been removed.entity_delete()
has been removed.node_load_multiple()
has been removed.field_update_field()
is now FieldStorageConfig::save()
.field_update_instance()
is now FieldConfig::save()
.form_set_error()
is now a method of FormStateInterface
.format_interval()
was moved into the date.formatter
service.format_plural()
was moved into the translation service.drupal_html_id()
has been moved into the HTML component.l()
has been removed.menu_parent_options()
has been replaced by menu.link_tree
service.get_t()
has been removed.theme()
has been renamed to _theme()
, and should never be called directly.variable_del()
has been removed.variable_get()
has been removed.variable_set()
has been removed.watchdog()
has been removed.MODULE.permissions.yml
.This issue can be fixed automatically.
core
key must have a value of 8.x
.type
key.configure
key must be a route name, not a path.getInfo()
in test classes replaced by doc comments$modules
property declaring dependenciesKernelTestBase
class for API-level integration tests