protected function EntityShareBlockFieldEnhancer::doTransform in Entity Share 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/jsonapi/FieldEnhancer/EntityShareBlockFieldEnhancer.php \Drupal\entity_share\Plugin\jsonapi\FieldEnhancer\EntityShareBlockFieldEnhancer::doTransform()
File
- src/
Plugin/ jsonapi/ FieldEnhancer/ EntityShareBlockFieldEnhancer.php, line 105
Class
- EntityShareBlockFieldEnhancer
- Prepare block field value to be able to handle block content entities.
Namespace
Drupal\entity_share\Plugin\jsonapi\FieldEnhancerCode
protected function doTransform($value, Context $context) {
if (isset($value['block_content_href'])) {
unset($value['block_content_href']);
}
return $value;
}