Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ComputedFileUrl.php

function ComputedFileUrl::setValue

Overrides TypedData::setValue

File

core/modules/file/src/ComputedFileUrl.php, line 40

Class

ComputedFileUrl
Computed file URL property class.

Namespace

Drupal\file

Code

public function setValue($value, $notify = TRUE) {
    $this->url = $value;
    // Notify the parent of any changes.
    if ($notify && isset($this->parent)) {
        $this->parent
            ->onChange($this->name);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal