Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use Drupal\image\Entity\ImageStyle;
- $image_url = ImageStyle::load('customer_logo_150x120_')->buildUrl($node->field_customer_logo->entity->getFileUri());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement