getAttributes(LayoutData::class)[0] ?? null; if ($attribute) { /** @var LayoutData $instance */ $instance = $attribute->newInstance(); // Execute the processor action, passing $this (the component) as the data context $applyLayout->execute($instance, $this); } } }