Commit cab1c0f4 authored by webchick's avatar webchick

Issue #2061107 by yched: Remove deprecated procedural functions in Field API.

parent 1420580c
This diff is collapsed.
......@@ -515,10 +515,10 @@ public function getType() {
* {@inheritdoc}
*/
public function getSettings() {
// @todo field_info_field_types() calls _field_info_collate_types() which
// maintains its own static cache. However, do some CPU and memory
// profiling to see if it's worth statically caching $field_type_info, or
// the default field and instance settings, within $this.
// @todo FieldTypePluginManager maintains its own static cache. However, do
// some CPU and memory profiling to see if it's worth statically caching
// $field_type_info, or the default field and instance settings, within
// $this.
$field_type_info = \Drupal::service('plugin.manager.field.field_type')->getDefinition($this->type);
$settings = $this->settings + $field_type_info['settings'] + $field_type_info['instance_settings'];
......
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