Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Issue #3003459 by chr.fritsch: Implement size widget setting #40

Merged
merged 3 commits into from Oct 10, 2018

Conversation

chrfritsch
Copy link
Member

No description provided.

* The form state object.
*/
public function validateWidth(array $element, FormStateInterface $form_state) {
if (!preg_match("/^\d+(px|em|\%)$/i", $element['#value'])) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why restrict to px/em/%? All css units are possible, and furthermore there are special values of element, style, and resolve possible.

@chrfritsch chrfritsch merged commit 0b6e655 into 8.x-1.x Oct 10, 2018
@chrfritsch chrfritsch deleted the feature/3003459 branch October 10, 2018 10:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants